package test.fanxin.clases;

import java.lang.reflect.InvocationTargetException;

public class MyMain  
{  
    public static void main(String[] args) throws SecurityException,  
            IllegalArgumentException, NoSuchMethodException,  
            IllegalAccessException, InvocationTargetException  
    {  
        // Car bean generic class test  
        GenericGoods<CarBean> oGGCar = new GenericGoods<CarBean>(new CarBean());  
        oGGCar.setData("Mercedes", "Benz", "666,000 RMB");  
        System.out.println("CarBean test: Type of class - "  
                + oGGCar.getClassType() + "; Information of the goods: "  
                + oGGCar.getInformation());  
  
        // House bean generic class test  
        GenericGoods<HouseBean> oGGHouse = new GenericGoods<HouseBean>(  
                new HouseBean());  
        oGGHouse.setData("Shenzhen Wanke City",  
                "3 rooms with 3 restrooms house", "2,000,000 RMB");  
        System.out.println("HouseBean test: Type of class - "  
                + oGGHouse.getClassType() + "; Information of the goods: "  
                + oGGHouse.getInformation());  
    }  
}  
